package com.isoftstone.merchant.dao.mproject;


import com.isoftstone.common.Page;
import com.isoftstone.merchant.entity.mproject.MProject;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface MProjectMapper {

    int deleteByPrimaryKey(Long projectId);

    int insert(MProject record);

    int insertSelective(MProject record);

    MProject selectByPrimaryKey(Long projectId);

    int updateByPrimaryKeySelective(MProject record);

    int updateByPrimaryKey(MProject record);

    List<MProject> selectprojectlistPage(Page page);

    List<MProject> checkName(Map<String, Object> map);

    List<MProject> selectProject(Long projectTypeId);

    Integer getCountFromMProject( Map<String, Object> map);

    List<MProject> selectProjectByType(Map<String, Object> projectTypeId);

    List<MProject> getProjectByCorpId(@Param("corpId") String corpId)throws Exception;

    List<MProject> getProjectNameByCropId(@Param("corpId") String corpId)throws Exception;

    List<MProject> getMemberShipProject(@Param("corpId") String corpId, @Param("openAccount") String openAccount)throws Exception;

}